import request from '@/axios/axios.js'

// 查询
export const searchApi = (params,isAll) => {
    return request({
        method: 'post',
        url: !isAll?'/dms/moldInfo/selectMoldDetailPage':'/dms/equipInfo/queryEquipfoList',
        data: params
    })
}

// 增加
export const addApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/equipInfo/saveEquipInfo',
        data: params
    })
}

// 编辑
export const editApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/equipInfo/updateEquipInfo',
        data: params
    })
}

// 删除
export const deleteApi = (params) => {
    return request({
        method: 'delete',
        url: '/dms/equipInfo/deleteByIds',
        data: params.delIds
    })
}

// 下载模板
export const templateApi= (params) => {
    return request({
        method: 'get',
        url: '/dms/equipInfo/template',
        responseType: 'blob',
        data: params
    })
}

// 导出
export const  exportApi= (params) => {
    return request({
        method: 'POST',
        url: '/dms/equipInfo/export',
        responseType: 'blob',
        data: params
    })
}